package org.whatisjava.action;

import java.util.Map;

/**
 * OGNL tagTest
 * 
 * @author Wangpeihu
 * @team [Never give up]
 * @since JDK1.6(建议)
 * @date 2010-1-26
 */
public class FormAction extends BaseAction {

    /**
	 * 
	 */
    private static final long serialVersionUID = 1L;

    // Attribute
    private String name;

    private int age;

    private String password;

    public String getPassword() {
        return this.password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return this.age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    /** ****************************************** */

    // Choice
    private String daily;

    private String weekly;

    private String monthly;

    public String getDaily() {
        return this.daily;
    }

    public void setDaily(String daily) {
        this.daily = daily;
    }

    public String getWeekly() {
        return this.weekly;
    }

    public void setWeekly(String weekly) {
        this.weekly = weekly;
    }

    public String getMonthly() {
        return this.monthly;
    }

    public void setMonthly(String monthly) {
        this.monthly = monthly;
    }

    /** ****************************************** */

    // Choice
    private Map<String, Boolean> choise;

    public Map<String, Boolean> getChoise() {
        return this.choise;
    }

    public void setChoise(Map<String, Boolean> choise) {
        this.choise = choise;
    }

    /** ****************************************** */

    // radio
    private Map<String, String> languageOption;

    public Map<String, String> getLanguageOption() {
        return this.languageOption;
    }

    public void setLanguageOption(Map<String, String> languageOption) {
        this.languageOption = languageOption;
    }

    public String execute() {
        if (choise != null) {
        }
        // languageOption = new HashMap<String, String>();
        // languageOption.put("Java", "Java_programer");
        // languageOption.put("C++", "C++_programer");
        // languageOption.put("C#", "C#_programer");
        return "success";
    }

    /** ****************************************** */

}
